package cn.highedu.coolshark_product.service.ex;

import lombok.Getter;

/**
 * 业务层异常
 */
public class ServiceException extends RuntimeException {
    /**
     * 业务状态码
     */
    @Getter
    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }
}
